/*
 * @Descripttion:
 * @Author: xiaodong
 * @Date: 2020-09-17 15:11:28
 */
import Vue from "vue";
import Router from "vue-router";
import tool from "@/views/tool/index.vue";
import patchPack from "@/views/tool/patchPack.vue";
import fastCertification from "@/views/tool/fastCertification.vue";
import Login from '@/views/login/index.vue';
Vue.use(Router);
const routes = [
  {
    path: "/",
    redirect: "/tool",
  },
  {
    name: "/tool",
    path: "/tool", //   path: '/subapp/tool',
    component: tool,
  },
  {
    name: "tool",
    path: "/tool/index",
    component: tool,
  },
  {
    name: "patchPack",
    path: "/tool/patchPack",
    component: patchPack,
  },
  {
    name: "fastCertification",
    path: "/tool/fastCertification",
    component: fastCertification,
  }
];

if (process.env.NODE_ENV === "development")
routes.push({
    path: "/tool/login",
    component: Login,
});

export default routes;
